<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>wwwApp: DBResult_SQL Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">wwwApp
   </div>
   <div id="projectbrief">A web app for workshop organizing, recruitment and qualification</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">DBResult_SQL Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for DBResult_SQL:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classDBResult__SQL.png" usemap="#DBResult_SQL_map" alt=""/>
  <map id="DBResult_SQL_map" name="DBResult_SQL_map">
<area href="classDBResult.html" alt="DBResult" shape="rect" coords="0,0,128,24"/>
<area href="classDBResult__Postgresql.html" alt="DBResult_Postgresql" shape="rect" coords="0,112,128,136"/>
</map>
 </div></div>

<p><a href="classDBResult__SQL-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a52277a00472077fd48ae700eb7bde1ed"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDBResult__SQL.html#a52277a00472077fd48ae700eb7bde1ed">fetch</a> ($n=null)</td></tr>
<tr class="memitem:a63cddb3aa4f54a220f835dfd4d9c0434"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDBResult__SQL.html#a63cddb3aa4f54a220f835dfd4d9c0434">affected_rows</a> ()</td></tr>
<tr class="inherit_header pub_methods_classDBResult"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classDBResult')"><img src="closed.png" alt="-"/>&nbsp;Public Member Functions inherited from <a class="el" href="classDBResult.html">DBResult</a></td></tr>
<tr class="memitem:a19568f26e9c48c53ec54d68697338412 inherit pub_methods_classDBResult"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDBResult.html#a19568f26e9c48c53ec54d68697338412">__construct</a> ($<a class="el" href="classDB.html">DB</a>, $resultResource)</td></tr>
<tr class="memitem:a5bfb23fc09017f8e72ceacbaf7b4f98c inherit pub_methods_classDBResult"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDBResult.html#a5bfb23fc09017f8e72ceacbaf7b4f98c">fetch_assoc</a> ($n=null)</td></tr>
<tr class="memitem:aedb1521f16fa3d27c64f22da18d7c7e1 inherit pub_methods_classDBResult"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDBResult.html#aedb1521f16fa3d27c64f22da18d7c7e1">fetch_vector</a> ($n=null)</td></tr>
<tr class="memitem:aca1c3d35c16329e9057e428e02718768 inherit pub_methods_classDBResult"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDBResult.html#aca1c3d35c16329e9057e428e02718768">fetch_all</a> ()</td></tr>
<tr class="memitem:ab6e8be6e7a71b0ddf01facfd6d0694ff inherit pub_methods_classDBResult"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDBResult.html#ab6e8be6e7a71b0ddf01facfd6d0694ff">fetch_column</a> ($column=null)</td></tr>
<tr class="memitem:abce0b9c7276aab683d8a962b6d0bd9e8 inherit pub_methods_classDBResult"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDBResult.html#abce0b9c7276aab683d8a962b6d0bd9e8">fetch_int</a> ()</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_attribs_classDBResult"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_classDBResult')"><img src="closed.png" alt="-"/>&nbsp;Public Attributes inherited from <a class="el" href="classDBResult.html">DBResult</a></td></tr>
<tr class="memitem:af3f8b2a7d0016fb9479da02a018b2044 inherit pub_attribs_classDBResult"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDBResult.html#af3f8b2a7d0016fb9479da02a018b2044">$resultResource</a> = null</td></tr>
<tr class="inherit_header pro_attribs_classDBResult"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classDBResult')"><img src="closed.png" alt="-"/>&nbsp;Protected Attributes inherited from <a class="el" href="classDBResult.html">DBResult</a></td></tr>
<tr class="memitem:a672dee4bc8dada3fecf2b4f306ece3ef inherit pro_attribs_classDBResult"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDBResult.html#a672dee4bc8dada3fecf2b4f306ece3ef">$DB</a> = null</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="sql_8php_source.html#l00113">113</a> of file <a class="el" href="sql_8php_source.html">sql.php</a>.</p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a63cddb3aa4f54a220f835dfd4d9c0434"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">DBResult_SQL::affected_rows </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">abstract</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reimplemented in <a class="el" href="classDBResult__Postgresql.html#a6ae671abe03764929d5f665c38b8c863">DBResult_Postgresql</a>.</p>

</div>
</div>
<a class="anchor" id="a52277a00472077fd48ae700eb7bde1ed"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DBResult_SQL::fetch </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$n</em> = <code>null</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reimplemented from <a class="el" href="classDBResult.html#ad849a3de270a8ae61d2d6795f65059fe">DBResult</a>.</p>

<p>Definition at line <a class="el" href="sql_8php_source.html#l00115">115</a> of file <a class="el" href="sql_8php_source.html">sql.php</a>.</p>
<div class="fragment"><div class="line">        {</div>
<div class="line">                $result = $this-&gt;<a class="code" href="classDBResult.html#a5bfb23fc09017f8e72ceacbaf7b4f98c">fetch_assoc</a>($n);</div>
<div class="line">                <span class="keywordflow">if</span> (count($result)==1)</div>
<div class="line">                        $result = array_pop($result);</div>
<div class="line">                <span class="keywordflow">return</span> $result;</div>
<div class="line">        }</div>
</div><!-- fragment -->
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>database/<a class="el" href="sql_8php_source.html">sql.php</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Sep 8 2013 17:44:57 for wwwApp by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.1
</small></address>
</body>
</html>
